[Unit]
Description=Prometheus exporter for Redis server metrics.
Documentation=https://github.com/oliver006/redis_exporter
After=network.target

[Service]
EnvironmentFile=-/etc/default/redis_exporter
User=prometheus
ExecStart=/bin/redis_exporter $REDIS_EXPORTER_OPTS
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=5s
CPUQuota=10%
MemoryLimit=200M

[Install]
WantedBy=multi-user.target